package sdu.icat.forum.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import sdu.icat.forum.smodel.ForumDocument;

@Repository
public interface ForumDocumentRepository extends JpaRepository<ForumDocument, Long>{

    Page<ForumDocument> findAll(Specification<ForumDocument> spec,Pageable pageable);

    Page<ForumDocument> findByAuthorId(Long authorId,Pageable pageable);
    
}
